import { InitTypeEnum, IProxyOption, ProxyTypeEnum } from './models'
export const proxyConfig: IProxyOption | IProxyOption[] = [
    {
        target: 'https://172.57.0.2',
        initType: InitTypeEnum.interface,
        context: ['/api/eks-secure/v1', '/ems_dashboard_api', '/api']
    },
    {
        target: 'https://sz-install-ecnf.easystack.io',
        // target: 'https://172.49.0.2',
        initType: InitTypeEnum.compatible,
        host: 'localhost:9095',
        proxyType: ProxyTypeEnum.NORMAL,
        projectName: 'eks-managed',
        successCode: '0',
        context: ['/api/eks-secure/v1', '/ems_dashboard_api', '/api']
    },
    {
        // target: 'https://install-ecnf.easystack.io',
        target: 'https://100.100.3.21',
        initType: InitTypeEnum.interface,
        host: 'localhost:9096',
        proxyType: ProxyTypeEnum.NORMAL,
        successCode: '200',
        // cookie: 'escookie=1667378438.07.22333.170654|3c77762824bfdb4eab82f511c1ecb2c1; csrftoken=Cj284HeGyvVGF5WrbHMf2ksZbTPqy76j; sessionid=m3c26w4osumhyl9xxnyedq9zdi0ghi8z',
        context: ['/ems_dashboard_api', '/api', '/ecs/api', '/ecs/tag', '/lbaas_dashboard_api']
    },
    {
        // target: 'https://10.230.0.2',
        target: 'https://172.51.0.2',
        host: 'localhost:9094',
        initType: InitTypeEnum.compatible,
        // cookie: 'escookie=1667378438.07.22333.170654|3c77762824bfdb4eab82f511c1ecb2c1; csrftoken=Cj284HeGyvVGF5WrbHMf2ksZbTPqy76j; sessionid=m3c26w4osumhyl9xxnyedq9zdi0ghi8z',
        context: ['/ems_dashboard_api', '/api', '/ecs/api', '/ecs/tag', '/lbaas_dashboard_api']
    },
    {
        target: 'https://100.100.3.21',
        // target: 'https://sz-install-ecnf.easystack.io',
        initType: InitTypeEnum.compatible,
        host: 'localhost:9091',
        proxyType: ProxyTypeEnum.NORMAL,
        projectName: 'devops',
        context: ['/ems_dashboard_api', '/api/ecns', '/devops_dashboard_api', '/ecs/api']
    },
    {
        target: 'https://172.19.52.52',
        // target: 'https://172.70.0.2',
        host: 'localhost:9092',
        initType: InitTypeEnum.compatible,
        context: ['/ems_dashboard_api', '/api/ecns', '/alcubierre_dashboard_api', '/ecs/api', '/alcubierre_manul']
    },
    {
        target: 'https://172.33.0.2',
        initType: InitTypeEnum.compatible,
        host: 'localhost:9090',
        projectName: 'proton-dashboard',
        proxyType: ProxyTypeEnum.NORMAL,
        context: ['/ems_dashboard_api', '/alcubierre_manul', '/alcubierre_manul_api', '/ecs/api', '/ens_dashboard_api']
    }
]
